Set Buzzer Sound Effect

  • Function:

    go.set_buzzer_sound(index,tone,beat)
    
  • Description: set buzzer sound effect

  • Required parameter:

    • index: buzzer sound number
      • 0: off
      • 1: long beep
      • 2: time off
      • 3: short beep
      • 4: three short beeps
      • 5: short beeps after long
      • 6: short beeps (do, re, mi, fa, so, la, si)
    • tone: If index=1 or 2, tone is valid, referring to the tone of piano keys. data type: int; range: 0~84 (piano keys), recommended value: 40~60
    • beat: If index=2, beat is valid, referring to the number of beats. data type: int; unit: s
  • Return:
    • True: The command has been finished.
    • False: The command has not been finished.
  • Example

    go.set_buzzer_sound(index=2, tone=50, beat=2)
    

    The buzzer beeps two seconds with the tone of No. 50 piano key before it stops.

results matching ""

    No results matching ""